using System;
using MbUnit.Framework;
using ThoughtWorks.CruiseControl.Remote;

namespace UnitTests
{
	[TestFixture]
	public class TestRemotingClient
	{
		[Test]
		public void TestOne()
		{
			RemoteCruiseManagerFactory factory = new RemoteCruiseManagerFactory();
			ICruiseManager manager = factory.GetCruiseManager("tcp://svn.veloc-it.net:21234/CruiseManager.rem");
			ProjectStatus[] projectStatuses = manager.GetProjectStatus();

			foreach (ProjectStatus status in projectStatuses)
			{
				
				Console.WriteLine("Project '{0}' status '{1}'", status.Name, status.Status);
				Console.WriteLine(manager.GetProject(status.Name));
				
			}
		}

		[SetUp]
		public void SetUp()
		{

		}

		[TearDown]
		public void TearDown()
		{

		}

	}
}